package com.tengju.bff.interfaces.covercharge.constant;

/**
 * 自认证是否打印
 *
 * @author fwy
 */
public enum SelfWithdrawIsPrintEnum {

    NOT_TO_PRINT(0, "未打印"),
    HAVE_TO_PRINT(1, "已打印");

    private Integer code;
    private String desc;

    SelfWithdrawIsPrintEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getDesc() {
        return this.desc;
    }

    public static SelfWithdrawIsPrintEnum getStatusDesc (Integer code){
        for(SelfWithdrawIsPrintEnum orderStatusEnum : (SelfWithdrawIsPrintEnum.values())){
            if(orderStatusEnum.getCode().equals(code)){//如果传入的code与此枚举code相同，则返回此枚举
                return orderStatusEnum;
            }
        }
        return null;
    }

}
